| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import commander from 'commander' |
||
| 3 | |||
| 4 | export default (program: typeof commander): commander.Command => program |
||
| 5 | .command('restart [service]') |
||
| 6 | .description('Restart all or a specific service.') |
||
| 7 | .action((service: string | undefined) => { |
||
| 8 | (new ServiceController()).executeRestart(service).catch(err => console.log(err.message)) |
||
| 9 | }) |